import request from '@/utils/request'

// 查询设备点检规则列表
export function listJdgz(query) {
  return request({
    url: '/device/jdgz/list',
    method: 'get',
    params: query
  })
}

// 查询设备点检规则详细
export function getJdgz(id) {
  return request({
    url: '/device/jdgz/' + id,
    method: 'get'
  })
}

// 新增设备点检规则
export function addJdgz(data) {
  return request({
    url: '/device/jdgz',
    method: 'post',
    data: data
  })
}

// 修改设备点检规则
export function updateJdgz(data) {
  return request({
    url: '/device/jdgz',
    method: 'put',
    data: data
  })
}

// 删除设备点检规则
export function delJdgz(id) {
  return request({
    url: '/device/jdgz/' + id,
    method: 'delete'
  })
}
